module.exports = app => {
  const jwt = app.middleware.jwt(app.config.jwt);
  // 用户类接口
  app.router.post('/api/register', app.controller.login.register);
  app.router.post('/api/login', app.controller.login.login);
  app.router.post('/api/refresh', app.controller.login.refreshToken);
  app.router.get('/api/test', jwt, app.controller.other.index);
};
